<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let symbol1 = Symbol.for("name");
        console.log(typeof symbol1); // symbol

        // description属性：返回symbol值的描述
        let str = symbol1.description;
        console.log("str = ",str);

        let n = 123;
        console.log(n instanceof Object);
        console.log(symbol1 instanceof Object); // false
        console.log(str instanceof Object); // false
    </script>
</body>
</html>